
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>添加管理员</title>
    <link rel="stylesheet" href="./static/common/layui/css/layui.css">
    <link rel="stylesheet" href="./static/admin/css/style.css">
    <script src="./static/common/layui/layui.js"></script>
    <script src="./static/common/jquery-3.3.1.min.js"></script>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="test">

        <button v-on:click="testClick">测试</button>

    </div>
</div>
<script>
    new Vue(
        {
            el: '#test',
            data:{
                account: '',
                password:''
            },
            methods: {
                addAdmin: function (event) {

                    $.ajax({
                        url:"/admin/insert",
                        method: "post",
                        data:{
                            "account": data.account,
                            "password": data.password
                        },
                        success: function (data) {
                            alert(datasss)
                        }
                    })

                },

                testClick: function(eaa){
                    console.log("测试点击事件")
                }
            }
        }
    )
</script>
</body>
</html>
